@import '@/styles/mixin.scss';

.rank-page {
  padding: 15px;

  .rank-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    @include boxShadowBlack;

    .img-wrapper {
      flex: 0 0 100px;
      position: relative;
      font-size: 0;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      h5, .play-count {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 12px;
        color: #fff;
      }
      h5 { top: 5%; }
      .play-count {
        .van-icon {
          margin-right: 4px;
        }

        display: flex;
        align-items: center;
        justify-content: center;
        bottom: 5%; 
        width: 100%; 
        font-weight: bold;
      }
    }

    .content-wrapper {
      flex-grow: 1;
      padding: 0 20px;
      overflow: hidden;

      h4 {
        margin: -4px 0 4px;
      }

      ul li {
        display: block;
        font-size: 12px;
        word-break: break-all;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }
    }
  }
}